package com.CIM.CIM_Spring.config;

import com.CIM.CIM_Spring.DLL.TinTerrainDLL;
import com.sun.jna.Native;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 控制不同DLL类的初始化
 */
@Configuration
public class DLLInitConfiguration {

    @Bean("TinTerrainDLL")
    public TinTerrainDLL tinTerrainDLL(){
        System.out.println("TinTerrainDLL has benn DI");
        return Native.load("tin-terrain", TinTerrainDLL.class);
    }
}
